<template>
  <div class="succeed">
    <h2 class="text">购票成功!</h2>
    <p class="orderNumber">订单编号:{{orderId}}</p>
    <van-button type="primary" to="/cart">返回购物车</van-button>
  </div>
</template>
<script>
export default {
  props: ["orderId"],
  data() {
    return {}
  }
}
</script>
<style lang="scss" scoped>
.succeed {
  .text {
    margin: 0;
    text-align: center;
    height: 200px;
    line-height: 200px;
    color: rgb(229, 72, 71);
    background: #fff;
  }
  .orderNumber {
    text-align: center;
    margin: 10px 0 20px;
    background: #fff;
    color: #999;
  }
  .van-button {
    width: 100%;
  }
}
</style>
